﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ProgrammersFAQ.BE;
using System.Data.Linq;

namespace ProgrammersFAQ.WS
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "SolutionsService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select SolutionsService.svc or SolutionsService.svc.cs at the Solution Explorer and start debugging.
    public class SolutionsService : ISolutionsService
    {
        public Solution[] getSolutionList()
        {
            using (ProgrammersFAQEntities entity = new ProgrammersFAQEntities())
            {
                return (from a in entity.Solutions select a).ToArray();   
            }
        }

    }
}
